package usgs.bip.swap.view;



public class DownloadHelper {


	private String state;
	private String stateAbbr;
	private String dataFile;
	private String excelFile;
	private String source;
	private String qaqcExcelFileDownloadPrefix;
	private String qaqcFileDownloadPrefix;
 
	public DownloadHelper(String QaqcExcelFileDownloadPrefix, String qaqcFileDownloadPrefix, String documentationSource){
		this.qaqcExcelFileDownloadPrefix = QaqcExcelFileDownloadPrefix;
		this.qaqcFileDownloadPrefix = qaqcFileDownloadPrefix;
		this.state = "";
		this.dataFile = "";
		this.excelFile = "";
		this.source = documentationSource;
		
	}
	
	
	/**
	 * @param state the state to set
	 */
	public void setState(String state) {
		this.state = state;
		try {
			this.stateAbbr = new StateListHelper().getStateAbbreviation(state);
			this.dataFile = this.qaqcFileDownloadPrefix + this.stateAbbr + "SGCN_Species_QAQC_List.txt";
			this.excelFile = this.qaqcFileDownloadPrefix + this.stateAbbr + "SGCN_Species_QAQC_List.xls";
		}catch(Exception e){
			e.printStackTrace();
		}
	}

	/**
	 * @return the state
	 */
	public String getState() {
		return state;
	}

	/**
	 * @param stateAbbr the stateAbbr to set
	 */
	public void setStateAbbr(String stateAbbr) {
		this.stateAbbr = stateAbbr;
	}

	/**
	 * @return the stateAbbr
	 */
	public String getStateAbbr() {
		return stateAbbr;
	}



	/**
	 * @param excelFile the excelFile to set
	 */
	public void setExcelFile(String excelFile) {
		this.excelFile = excelFile;
	}

	/**
	 * @return the excelFile
	 */
	public String getExcelFile() {
		return excelFile;
	}

	/**
	 * @param dataFile the dataFile to set
	 */
	public void setDataFile(String dataFile) {
		this.dataFile = dataFile;
	}

	/**
	 * @return the dataFile
	 */
	public String getDataFile() {
		return dataFile;
	}


	/**
	 * @param source the source to set
	 */
	public void setSource(String source) {
		this.source = source;
	}

	/**
	 * @return the source
	 */
	public String getSource() {
		return this.source;
	}

	/**
	 * @param qaqcExcelFileDownloadPrefix the qaqcExcelFileDownloadPrefix to set
	 */
	public void setQaqcExcelFileDownloadPrefix(String prefix) {
		this.qaqcExcelFileDownloadPrefix = prefix;
	}

	/**
	 * @return the qaqcExcelFileDownloadPrefix
	 */
	public String getQaqcExcelFileDownloadPrefix() {
		return qaqcExcelFileDownloadPrefix;
	}

	/**
	 * @param qaqcFileDownloadPrefix the qaqcFileDownloadPrefix to set
	 */
	public void setQaqcFileDownloadPrefix(String qaqcFileDownloadPrefix) {
		this.qaqcFileDownloadPrefix = qaqcFileDownloadPrefix;
	}

	/**
	 * @return the qaqcFileDownloadPrefix
	 */
	public String getQaqcFileDownloadPrefix() {
		return qaqcFileDownloadPrefix;
	}
	
	
}
